import request from '@/utils/request'

// 查询日常任务事件类型列表
export function listDailyTaskEvent(query) {
  return request({
    url: '/schedule/manager/dailyTaskEvent/list',
    method: 'get',
    params: query
  })
}

// 查询日常任务事件类型详细
export function getDailyTaskEvent(id) {
  return request({
    url: '/schedule/manager/dailyTaskEvent/' + id,
    method: 'get'
  })
}

// 新增日常任务事件类型
export function addDailyTaskEvent(data) {
  return request({
    url: '/schedule/manager/dailyTaskEvent',
    method: 'post',
    data: data
  })
}

// 修改日常任务事件类型
export function updateDailyTaskEvent(data) {
  return request({
    url: '/schedule/manager/dailyTaskEvent',
    method: 'put',
    data: data
  })
}

// 删除日常任务事件类型
export function delDailyTaskEvent(id) {
  return request({
    url: '/schedule/manager/dailyTaskEvent/' + id,
    method: 'delete'
  })
}

// 删除动作
export function dailyTaskAction(id) {
  return request({
    url: '/schedule/manager/dailyTaskAction/deleteById/' + id,
    method: 'delete'
  })
}

// 导出日常任务事件类型
export function exportDailyTaskEvent(query) {
  return request({
    url: '/schedule/manager/dailyTaskEvent/export',
    method: 'get',
    params: query
  })
}